<template>
    <div>
        <div>
            <a-control-group>
                <a-label>账号</a-label>
                <a-input-string v-model:value="name"></a-input-string>
            </a-control-group>
        </div>
        <pre class="language-html"><code>{{ `<a-control-group>
    <a-label>账号</a-label>
    <a-input-string v-model:value="name"></a-input-string>
</a-control-group>` }}</code></pre>
        <pre class="language-javascript"><code>{{ `export default {
    data() {
        return {
            name: 'zhang',
        }
    },
}` }}</code></pre>
        <div v-for="type in typeList" :key="type.name" class="c-m-t-m">
            <p>{{ type.name }}</p>
            <a-table
                :headerList="type.headerList"
                :dataList="type.dataList"
            ></a-table>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            name: 'zhang',
            typeList: [
                {
                    name: 'props',
                    headerList: [
                        { name: 'name', text: '名称' },
                        { name: 'remark', text: '说明' },
                        { name: 'type', text: '类型' },
                        { name: 'default', text: '默认值' },
                    ],
                    dataList: [
                        { name: 'color', remark: '主题色', type: 'default | primary | secondary | success | warning | error', default: 'default' },
                        { name: 'size', remark: '尺寸', type: 'xs | s | m | l | xl', default: 'm' },
                        { name: 'sharp', remark: '是否尖角', type: 'boolean', default: 'false' },
                        { name: 'square', remark: '是否正方形', type: 'boolean', default: 'false' },
                        { name: 'block', remark: '是否块级', type: 'boolean', default: 'false' },
                        { name: 'plain', remark: '是否朴素样式', type: 'boolean', default: 'false' },
                        { name: 'align', remark: '文字对齐方式', type: 'left | center | right', default: 'center' },
                    ],
                }
            ]
        }
    },
}
</script>